import {fetchGet, fetchPost} from "~/request/request";
import {ISigningParams, ISigningRep, IUserProfile} from "./types";
import {REP} from "~/api/common";


// fetchSignIn 登录
export const fetchSignIn = (params: ISigningParams): Promise<REP<string>> => fetchPost(`/user/signin`, params)

// 获取用户信息
export const fetGetUserProfile = (): Promise<REP<IUserProfile>> => fetchGet(`/user/profile`, null)
